<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>欢迎来到棒棒糖！</title>
<link rel="stylesheet" type="text/css" href="../Public/register/css/interface.css" />
<script type="text/javascript" src="../Public/js/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="../Public/register/js/My97DatePicker/My97DatePicker/WdatePicker.js"></script>
</head>
<script type="text/javascript">

function toAddChild()
{
    var name=$("#name").val();
    var netweb=$("#netweb").val();
    var password=$("#password").val();
    var birthday=$("#birthday").val();
    var realBirthday=new Date(birthday);
    var lastbirthday=realBirthday.getTime();
    var sex=$("#sex").val();
   $.post("doAddChild",{name:name,netweb:netweb,password:password,birthday:lastbirthday,sex:sex},function(data){  
        var jsonObj = $.parseJSON(data);
        if(jsonObj.status==1){
         window.location.href = "land";
         }
         else{
         //创建失败，刷新本页面
         alert("注册失败，请重新输入！");
         window.location.href = "toAddChild";
         }
     });
}
function checkname(){
   
    
}
</script>
<body>

<div id='maincontainer'>
	<div id="logo"></div>
	<div id="container">
		<div id="title_b">
			<div id="title">
				<div id="title_w"></div>
			</div>
		</div>
		<div id="container_m">
        <div id="create" class="blueback" >
    	  <table border="0" cellspacing="12px" cellpadding="0" style="text-align:left; color:#209593; font-size:10pt; font-weight:bold;font-family:'黑体';letter-spacing:3px;">
              <tr>
                <td width="30px;">孩子名字：</td>
                <td>
                  <input type="text" name="name" id="name" style="width:100px;"  onblur="checkname()"/></td>
              </tr>
              <tr>
                <td  >用&nbsp;户&nbsp;名：</td>
                <td>
                  <input type="text" name="netweb" id="netweb"/> 
                  .tang.com </td>
              </tr>
              <tr>
                <td >密&emsp;&emsp;码：</td>
                <td>
                  <input type="password" name="password" id="password" /></td>
              </tr>
              <tr>
                <td >生&emsp;&emsp;日：</td>
                <td>
                  <input type="birthday" name="birthday" id="birthday" onfocus="WdatePicker({isShowClear:false,readOnly:true,dateFmt:'MM/dd/yyyy HH:mm:ss'})"/>
                  <img onclick="WdatePicker({el:'birthday',isShowClear:false,readOnly:true,dateFmt:'MM/dd/yyyy HH:mm:ss'})" src="../Public/register/image/cal.gif"  align="absmiddle">
                  </td>
              </tr>
              <tr>
                <td >性&emsp;&emsp;别：</td>
                <td>
                  <select name="sex" id="sex">
                    <option selected value="1" id="sex">男</option>
                    <option value="0" >女</option>
                    </select></td>
              </tr>
               	<tr>
    				<td><div id='create_button' onclick="toAddChild()"></div></td>
       				<td>
                    	
                    </td>
  				</tr>
        </table>
		</div>
<div id="middleline"></div>
<div id="advise" style="float:left;height:285px; padding-left:10px;">
<div id="advise1" class="blueback" style="height:135px;width:202px;">
<img src="../Public/upload/head/{$user1.picture}"  style="height:135px;width:202px;" />
</div>

<div id="advise2" class="blueback" style="height:125px;width:202px; margin-top:20px;">
<img src="../Public/upload/head/{$user2.picture}"  style="height:135px;width:202px;" />
</div>
</div>
    </div>
        
		</div>
		<div id="about">
			<div>
		<a>所有内容©Tang-保留所有权利</a> <a href="#">联系我们</a> <a>|</a> <a href="#">隐私权政策</a> <a>|</a> <a href="#">服务条款</a>
			</div>
		</div>
	</div><!-- container结束 -->
</div><!-- maincontainer结束 -->
<!--<div id='middlecontainer'></div>-->
<div id="bottomcontainer"><div id="ship" onclick="shove_off(this)"></div></div>
</body>
</html>
